package com.yc.ycbook.base;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.yc.yclibrary.base.YcLazyFragment;
import com.yc.yclibx.YcManage;

import java.util.Stack;

import io.reactivex.disposables.Disposable;

/**
 *
 */
public abstract class BaseFragment extends YcLazyFragment implements IBase {
    @Override
    public void onDestroy() {
        mYcManage.removeAll();
        for (Disposable disposable : mDisposableList) {
            disposable.dispose();
        }
        super.onDestroy();
    }

    @NonNull
    @Override
    public Context getContext() {
        return getActivity();
    }
}
